import 'package:bruno/bruno.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


import '../AppConfig/Config.dart';

class EnterpriseInvitationPage extends StatefulWidget {
  const EnterpriseInvitationPage({super.key});

  @override
  State<EnterpriseInvitationPage> createState() => _EnterpriseInvitationPageState();
}

class _EnterpriseInvitationPageState extends State<EnterpriseInvitationPage> {
  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        backgroundColor: Colors.white,
        title: Text("企业邀请",style: TextStyle(color: Colors.black,fontWeight: FontWeight.w300,fontSize: 16.sp),),
        centerTitle: true,
      ),
      body: Column(
        children: [
          Expanded(child: ListView(
            children: [
            Container(
              decoration: BoxDecoration(
                  color: Colors.white,
                  borderRadius: BorderRadius.all(Radius.circular(10))),
              margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
              padding: EdgeInsets.only(left: 6.w,top: 8.h,right: 9.w,bottom: 20.h),
              child: Column(
                children: [
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        children: [
                          Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                            width: 30.w,height: 30.h,fit: BoxFit.cover,),
                          SizedBox(width: 12.w,),
                          Text("企业邀请",style: TextStyle(color: Colors.black),),
                        ],
                      ),
                      Text("12:05",style: TextStyle(color: MyColors.authTipColor),),
                    ],
                  ),
                  Divider(height: 16.h,color: MyColors.backgreyColor,),
                  Text("     您点击“接受”键，即表示您已阅读并同意《企业授权委托书》 (以下简称“委托书”) 的内容，自愿接受邀请页面所展示的企业邀请，按照平台企业模式相关页面的要求/指引加入企业，成为该企业的调度，并遵守委托书下的相关义务您同意并接受，为使得受托人完成您所委托之事项，受托人将可查看您的姓名、头像。\n    在点击“接受”键之前，请您务必审慎、仔细阅读并充分理解本段及委托书的全部内容 (特别是免除或者限制责任的内容以及以粗体及/或下划线标注的内容) 。如果您不同意本段或委托书的任何内容，或者无法准确理解本段或委托书任何条款的含义，请不要进行确认及后续操作。",
                  style: TextStyle(fontSize: 12.sp,color: MyColors.textColor),),
                ],
              ),
            ),
              SizedBox(height: 8.h,),
              Center(
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("了解更多",style: TextStyle(color: MyColors.textColor),),
                    GestureDetector(
                      child: Text("《企业邀请》",style: TextStyle(color: MyColors.blueColor),),
                      onTap: (){},
                    ),
                    Text("相关协议",style: TextStyle(color: MyColors.textColor),),
                  ],
                ),
              )
            ],
          ),
          ),
          Container(
            height: 85.h,color: Colors.white,
            width: screenSize.width,
            padding: EdgeInsets.only(left: 15.w,right: 15.w,top: 10.h,bottom: 40.h),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: [
                BrnSmallOutlineButton(
                  title: '拒绝',
                  lineColor: MyColors.themeColor,
                  textColor: MyColors.themeColor,
                  radius: 30,
                  width: 150.w,
                  fontSize: 16.sp,
                  onTap: () {
                    BrnToast.show('次按钮', context);
                  },
                ),
                BrnSmallMainButton(
                  title: '接受',
                  width: 150.w,
                  bgColor: MyColors.themeColor,
                  textColor: Colors.white,
                  fontSize: 16.sp,
                  radius: 30,
                  onTap: () {
                    BrnToast.show('录需求信息', context);
                  },
                )
              ],
            ),
          ),

        ],
      ),
    );
  }
}
